<script>
	import routerIntercetor from './utils/permission.js'
	import {
		mapMutations
	} from "vuex";
	export default {
		/* 
			this.$set(target,key,value)  有三个参数
			1. target目标对象 (对象、数组)
			2. key属性名 (数组就是索引)
			3. value属性值	(要修改的值)
			作用：可以局部修改响应式数据中非响应式数据(每个元素)
			使用场景：除了修改局部数据以外，添加新属性
		*/
		methods: {
			...mapMutations('userInfo', ['setStorage']),
			...mapMutations('cart', ['setshoppingCart']),
		},
		onLaunch: function() {
			uni.hideTabBar({})
			routerIntercetor()
		},
		onShow: function() {},
		onHide: function() {}
	}
</script>

<style lang="scss">
	@import "@/static/iconfont/iconfont.css";
	@import "uview-ui/index.scss";

	.container {
		background-color: #f1f1f1;
	}
</style>